3.135 \(\int \frac{1}{a+b x^2} \, dx\)

Optimal. Leaf size=24 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{b}} \]

[Out]

ArcTan[(Sqrt[b]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[b])

_______________________________________________________________________________________

Rubi [A]  time = 0.018048, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{b}} \]

Antiderivative was successfully verified.

[In]  Int[(a + b*x^2)^(-1),x]

[Out]

ArcTan[(Sqrt[b]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[b])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 2.4669, size = 22, normalized size = 0.92 \[ \frac{\operatorname{atan}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{\sqrt{a} \sqrt{b}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(1/(b*x**2+a),x)

[Out]

atan(sqrt(b)*x/sqrt(a))/(sqrt(a)*sqrt(b))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0076092, size = 24, normalized size = 1. \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{b}} \]

Antiderivative was successfully verified.

[In]  Integrate[(a + b*x^2)^(-1),x]

[Out]

ArcTan[(Sqrt[b]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[b])

_______________________________________________________________________________________

Maple [A]  time = 0.002, size = 16, normalized size = 0.7 \[{1\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(1/(b*x^2+a),x)

[Out]

1/(a*b)^(1/2)*arctan(x*b/(a*b)^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(b*x^2 + a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.203606, size = 1, normalized size = 0.04 \[ \left [\frac{\log \left (\frac{2 \, a b x +{\left (b x^{2} - a\right )} \sqrt{-a b}}{b x^{2} + a}\right )}{2 \, \sqrt{-a b}}, \frac{\arctan \left (\frac{\sqrt{a b} x}{a}\right )}{\sqrt{a b}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(b*x^2 + a),x, algorithm="fricas")

[Out]

[1/2*log((2*a*b*x + (b*x^2 - a)*sqrt(-a*b))/(b*x^2 + a))/sqrt(-a*b), arctan(sqrt
(a*b)*x/a)/sqrt(a*b)]

_______________________________________________________________________________________

Sympy [A]  time = 0.286827, size = 53, normalized size = 2.21 \[ - \frac{\sqrt{- \frac{1}{a b}} \log{\left (- a \sqrt{- \frac{1}{a b}} + x \right )}}{2} + \frac{\sqrt{- \frac{1}{a b}} \log{\left (a \sqrt{- \frac{1}{a b}} + x \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(b*x**2+a),x)

[Out]

-sqrt(-1/(a*b))*log(-a*sqrt(-1/(a*b)) + x)/2 + sqrt(-1/(a*b))*log(a*sqrt(-1/(a*b
)) + x)/2

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.207529, size = 20, normalized size = 0.83 \[ \frac{\arctan \left (\frac{b x}{\sqrt{a b}}\right )}{\sqrt{a b}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(b*x^2 + a),x, algorithm="giac")

[Out]

arctan(b*x/sqrt(a*b))/sqrt(a*b)